package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class NestingOption {

    private int beginIndex;
    private int endIndex;
    private boolean withNesting;
    private boolean withoutNesting;

    public NestingOption(int beginIndex,
                         int endIndex,
                         boolean withNesting,
                         boolean withoutNesting) {
        this.beginIndex = beginIndex;
        this.endIndex = endIndex;
        this.withNesting = withNesting;
        this.withoutNesting = withoutNesting;
    }

    public int getBeginIndex() {
        return beginIndex;
    }

    public int getEndIndex() {
        return endIndex;
    }

    public boolean isWithNesting() {
        return withNesting;
    }

    public boolean isWithoutNesting() {
        return withoutNesting;
    }

}
